package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.DispensaryMapper;
import com.aaa.hospital.ManagementEnd.pojo.Dispensary;
import com.aaa.hospital.ManagementEnd.service.DispensarySer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DispensarySerImpl implements DispensarySer {
    @Autowired
    private DispensaryMapper dispensaryMapper;
    @Override
    public List<Dispensary> queryAll() {
        return dispensaryMapper.queryAll();
    }


    @Override
    public Dispensary selectById(int yfid) {
        return dispensaryMapper.selectById(yfid);
    }

    @Override
    public int insert(Dispensary dispensary) {
        return dispensaryMapper.insert(dispensary);
    }

    @Override
    public int update(Dispensary dispensary) {
        return dispensaryMapper.update(dispensary);
    }

    @Override
    public int delete(int id) {
        return dispensaryMapper.delete(id);
    }
}
